<%@page import="java.io.* , java.util.*, java.sql.*, com.myapp.struts.actionform.*, com.myapp.struts.dao.*, com.myapp.struts.beans.*"%>
<html>
    <head>
        <title>Edit UOM</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="../../../../css/cms.css" rel="stylesheet" type="text/css">
         <script language="javascript">
            function Validate()
            {
                var index1=document.DeleteUom.uomname.selectedIndex;
                if(index1<=0)
                {
                    alert("Please Select a uom....");
                    document.DeleteUom.uomname.focus();
                    return false;
                }
			}
			</script>
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="545" align="center" valign="top">&nbsp;<br />
                    &nbsp;<br />
                    <form action="../../../../DeleteUom" method="post" enctype="application/x-www-form-urlencoded" name="DeleteUom" id="DeleteUom" onSubmit="return Validate();">
                        <table border="0" align="center" cellpadding="0" cellspacing="0" style="border-right: #000000 1px solid;
                               border-top: #000000 1px solid; border-left: #000000 1px solid;  border-bottom: #000000 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                            <tr align="center">
                                <th height="33" colspan="2"><span class="style2">Deleting a UOM </span></th>
                            </tr>
                            <tr>
                                <td width="82" align="center" valign="top"><span class="style1">UOM</span></td>
                                <td width="108" align="center" valign="middle">
                                    <select name="uomname" id="uomname">
                                        <option value="-1"></option>
                                        <%UomDao uomdao = new UomDao();
                                                      Vector gp1 = uomdao.getAllUoms();
                                                      if (gp1 != null) {
                                                      Iterator itg = gp1.iterator();
                                                      while (itg.hasNext()) {UomBean gb = (UomBean) itg.next();String pname = gb.getUom();
                                        %><option value="<%=pname%>"><%=pname%></option><%}}%></select>
                                </td>
                            </tr>
                            <tr >
                                <td colspan="2" align="center" valign="middle"><input name="Submit" type="submit" class="subHeader" value="Delete" /></td>
                            </tr>
                        </table>
                    </form>
                </td>
            </tr>

            <tr>
                <td background="images/flash_body1.png">&nbsp;</td>
            </tr>
        </table>
    </body>
</html>
